# coding=utf-8
import Queue

q = Queue.Queue(maxsize=10)

q.put(1);
q.put(2)
q.put(3)


import  threading
class Tom(threading.Thread):

	def __init__(self,q):
		self.q=q

	def run(self):
		print self.q.get()

